package homework;

import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Random;

import org.apache.commons.io.FileUtils;

public class Work3 {
	public static void main(String[] args) throws Exception {
		File name = new File("fw.txt");
		List<String> readLines = FileUtils.readLines(name,"GBK");
		Random rd = new Random();
		int index = rd.nextInt(50)+1;
		System.out.println(readLines.get(index).split("-")[0]);
	}
}
